package com.example.lifecycle

import android.content.Intent
import android.os.IBinder
import android.util.Log
import androidx.lifecycle.LifecycleService

class MyLifeCycleService : LifecycleService {

    var myServiceObserver: MyServiceObserver = MyServiceObserver()

    constructor() {
        lifecycle.addObserver(myServiceObserver)
    }

    override fun onBind(intent: Intent): IBinder? {
        Log.e("zzm debug","MyLifeCycleService onBind")
        return super.onBind(intent)
    }

    override fun onCreate() {
        super.onCreate()
        Log.e("zzm debug","MyLifeCycleService onCreate")
    }
}